/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.util.nastranHdf5Parser.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

/**
 * Nastran 数据对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class NastranData {

    private String version;
    private Map<String, NastranDataset> results;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class NastranDataset {
        private String name;
        private List<String> headers;
        private Map<Integer, List<NastranDataEntry>> op2Subcases; // key = subcaseId, value = 数据列表
    }

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class NastranDataEntry {
        private Integer entity;
        private List<Object> values;
    }
}
